package com.artfighting.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.artfighting.model.embed.ELong;

@Entity
@Table(name = "tblclips")
public class Clip extends ELong {
	
	@Column(name = "Name")
	private String name;
	
	@Column(name = "URL")
	private String url;
	
	@Column(name = "Ordinal")
	private String ordinal;
	
	@Column(name = "Date")
	private Date date = new Date();
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "VideoID")
	private Video video;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getOrdinal() {
		return ordinal;
	}

	public void setOrdinal(String ordinal) {
		this.ordinal = ordinal;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Video getVideo() {
		return video;
	}

	public void setVideo(Video video) {
		this.video = video;
	}
	
}
